gl: Do not use the extension API for core GL
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 28 Jan 2015 19:06:37 +0000 (19:06 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 9 Feb 2015 19:10:30 +0000 (19:10 +0000)
Since we are using a Core GL profile, we need to drop the
extension-based API.

https://bugzilla.gnome.org/show_bug.cgi?id=741946

gdk/gdkgl.c

index 5dae9f6514255e2218766ea6fea2c0706434a55f..be3d6f428e23e1a7e7c05fa6032d839108cd80fe 100644 (file)
@@ -355,7 +355,7 @@ gdk_cairo_draw_from_gl (cairo_t              *cr,
 
   if (source_type == GL_RENDERBUFFER)
     {
-      glBindRenderbufferEXT (GL_RENDERBUFFER_EXT, source);
+      glBindRenderbuffer (GL_RENDERBUFFER, source);
       glGetRenderbufferParameteriv (GL_RENDERBUFFER, GL_RENDERBUFFER_ALPHA_SIZE,  &alpha_size);
     }
   else if (source_type == GL_TEXTURE)